﻿<Window x:Class="ResPackClient.ModifyWorkSpace"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{StaticResource STR_DLG_MODIFY_WORKSPACE}" 
        Style="{StaticResource STYLE_TOOLBOX}"
        WindowStartupLocation="CenterOwner"
        Height="240" Width="220">
    
    <Grid>        
        <StackPanel Name="_panel">
            <TextBlock Text="{StaticResource STR_DLG_NAME_WORKSPACE}"></TextBlock> 
            <ComboBox Name="_cbWorkSpace" ItemsSource="{Binding Path=Rows}" ItemTemplate="{StaticResource DATA_TEMPLATE_WORKSPACE}"></ComboBox>
            <TextBlock Text="{StaticResource STR_DLG_NAME_WORKSPACE}"></TextBlock>
            <TextBox Name="_txtWorkSpace" IsEnabled="{Binding ElementName=_cbWorkSpace,Path=SelectedIndex,Converter={StaticResource CONVERTER_INDEX_TO_BOOL}}"></TextBox>
            <StackPanel Style="{StaticResource STYLE_DLG_BT}">
                <Button Content="{StaticResource STR_BT_MODIFY}" IsDefault="True" Click="OnOk" IsEnabled="{Binding ElementName=_txtWorkSpace,Path=Text.Length}"></Button>
                <Button Content="{StaticResource STR_BT_CANCEL}" IsCancel="True"></Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
